I'm also speaking biblically here. If God is not bound by the natural laws of space and time, then it resonable to conclude that God KNOWS what will happen before it happens. He also knows what has happened just as he knows what will happen.
Imagine being on the ground and looking at what was around you. Your perspective is limited and does not have the perspective of, say a helicopter. Imagine time being the ground where you are standing, and God being the helicopter. He can see what is behind you, directly in front of you, and ahead of you. But again, this is a PERSPECTIVE and not a specific action of control.
God's omniscience allows Him to view the past as if it is the present and the future as if it is the present. But that viewing or perspective in no way takes away our freedom of action.
The Bible constantly talks about our own free will just as it talks about God's nature of being all knowing. Jesus said at John 8:24: "I told you that you would die in your sins, for unless you believe that I am he you will die in your sins.”" There was free will to believe or not believe. Leviticus 22:23 says: "You may, however, present as a freewill offering an ox or a sheep that is deformed or stunted, but it will not be accepted in fulfillment of a vow."
My point is that God's foreknowledge of future events does not CAUSE us to act in any specific way. Perhaps we can view free will as a philosophical illusion. But as humans, we have choice. And whether or not someone knows what choice we will make does not directly impact how we make that choice.